﻿#region File Description
// EpicLeadManager
// EpicLeadManager
// MainWindow.xaml.cs
#endregion

#region Using References
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows;
using EpicLeadManager.Controllers.SQLManager;
using EpicLeadManager.Models;
using MahApps.Metro.Controls;
using MahApps.Metro.Controls.Dialogs;

#endregion

namespace EpicLeadManager
{
    /// <summary>
    ///     Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : MetroWindow
    {
        //Temp
        public static MainWindow Instance;
        public MainWindow()
        {
            Instance = this;
            InitializeComponent();
        }

        public async void LoadComponent()
        {
            await this.ShowMessageAsync("Authentication Information", String.Format("Username: {0}\nPassword: {1}", "toto", "titi"));

        }

        private void ShowRepo_OnClick(object sender, RoutedEventArgs e)
        {
            Process.Start("https://epicleadmanager.codeplex.com/");
        }

        public async void ShowDialogMessage(string title, string message)
        {
            await this.ShowMessageAsync(title, message);
        }
    }
}